package org.querycreator.operator;

import java.io.Serializable;

import org.hibernate.criterion.Criterion;

/**
 * Interface that defines the contract
 * all the operators have to follow
 * 
 * @author Luciano Molinari
 *
 */
public interface Operator extends Serializable {

	Criterion createCriterion(String fieldName, Object fieldValue);
	
	String createSql(String fieldName);
	
}